<?php

//The pinboard theme image folder
$imgUrl =  get_option("home") . "/wp-content/themes/pinboard/images/";

$homeBackgroundImg = "home.png";
$diyFlowerPageImg = "diyFlowerPageImg.png";
$gift="gift.png";
$mystory="story.png";
$diyFlowerPageId='8';
$mystorypageid='10';
$giftPageId='11';
$diyFlowerPageUrl = get_option("home") . "/?cat=" . $diyFlowerPageId;
$mystorypageurl=get_option("home") . "/?cat=" . $mystorypageid;
$giftpageurl=get_option("home") . "/?cat=" . $giftPageId;

echo '<ul id="main-nav" class="main-nav clearfix">';
echo '<li ';
if(is_home()) {
	$homeBackgroundImg = "currentHomeBgImg.png";	//Used to change the background image
	echo 'class="mainNavItemChanged" >';				//Used to change the Text Css style
} else {
	echo ' >';
}
echo '<a  href="' . home_url() . '/"><img src="' . $imgUrl . $homeBackgroundImg . '" /> </a></li>';

echo '<li ';
if(is_category($diyFlowerPageId)) {
	$diyFlowerPageImg = "diy.png";	//Used to change the background image
	echo 'class="mainNavItemChanged" >';				//Used to change the Text Css style

} else {
	echo ' >';
}
echo '<a  href=" ' . $diyFlowerPageUrl . '/"><img src="' . $imgUrl . $diyFlowerPageImg . '" /> </a></li>';

echo '<li ';
if(is_category($mystorypageid)) {
	$mystory = "mystory.png";	//Used to change the background image
	echo 'class="mainNavItemChanged" >';				//Used to change the Text Css style
} else {
	echo ' >';
}
echo '<a  href="' .$mystorypageurl . '/"><img src="' . $imgUrl . $mystory . '" /> </a></li>';

echo '<li ';
if(is_category($giftPageId)) {
	$gift = "mygift.png";	//Used to change the background image
	echo 'class="mainNavItemChanged" >';				//Used to change the Text Css style
} else {
	echo ' >';
}
echo '<a  href="' .$giftpageurl . '/"><img src="' . $imgUrl . $gift . '" /> </a></li>';
echo '</ul>';
?>